package kr.co.hanbit;

public class MyClass1 {
	private String name;
	public MyClass1(){
		System.out.println("1st");
		System.out.println(name);
	}
	public MyClass1(String n){
		System.out.println("2nd");
		name = n;
		System.out.println(name);
	}
	public void setName(String n){
		name = n;
		System.out.println(name);
	}
	public static void main(String[] args) {
		MyClass1 mc1 = new MyClass1();
		MyClass1 mc2 = new MyClass1("www.naver.com");
		mc1.setName("www.sist.co.kr");
	}
}
